package ex1.basic;

import java.util.Stack;

public class JavaCollectionStackDemo {
	public static void main(String[] args) {
		Stack<String> all = new Stack<String>();// 实例化栈结构
		all.push("A");
		all.push("B");
		all.push("C");
		System.out.println(all.pop());
		System.out.println(all.pop());
		System.out.println(all.pop());
		System.out.println(all.pop());// 无数据，EmptyStackException

	}
}
